home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / fortran / toolpack.000 / toolpack / toolpack1.2 / util / echoerr.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-04  |  282 b   |  15 lines

  1. #include <stdio.h>
  2.  
  3. main(argc, argv)
  4.  
  5. /* The executable for this program is called echoerr. */
  6. /* echoerr echos a string to standard error rather than standard output */
  7.  
  8. int argc;
  9. char *argv[];
  10.  
  11. {
  12.     while (--argc > 0 )
  13.         fprintf(stderr, "%s%c", *++argv, (argc > 1) ? ' ' : '\n');
  14. }
  15.